package com.bzyd.ss.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bzyd.ss.mapper.UserMapper;
import com.bzyd.ss.model.entity.UserEntity;
import com.bzyd.ss.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, UserEntity> implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<String> findRolesByUserId(Integer userId) {
        return userMapper.selectRolesByUserId(userId);
    }

    @Override
    public List<String> findResourcesByUserId(Integer userId) {
        return userMapper.selectResourcesByUserId(userId);
    }
}
